package zasm.zasm.util;

import java.util.ArrayList;
import java.util.Collection;

public class Stack<E> extends ArrayList<E> {

	public Stack() {
		super();
	}

	public Stack(final Collection<? extends E> c) {
		super(c);
	}

	public Stack(final int initialCapacity) {
		super(initialCapacity);
	}

	public void push(final E e) {
		add(e);
	}

	public E peek() {
		return get(size() - 1);
	}

	public E pop() {
		return remove(size() - 1);
	}

}
